package cn.wolfcode.trip.base.query;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class QueryObject {
    private String keyword;
    private int pageSize = 3;
    private int currentPage = 1;


    public int getStart() {
        return (currentPage - 1) * pageSize;
    }

    public String getKeyword() {
        return keyword == "" ? null : keyword;//避免传入空字符串
    }

}
